import numpy as np
import plotly.graph_objs as go
import plotly.offline as of
of.offline.init_notebook_mode(connected=True)

labels = ['Oxygen','Hydrogen','Carbon_Dioxide','Nitrogen']
values = [4500,2500,1053,500]
colors = ['#FEBFB3', '#E1396C', '#96D38C', '#D0F9B1']

trace = go.Pie(labels=labels, values=values,
             hoverinfo='label+percent', textinfo='value',
             textfont=dict(size=20),
             marker=dict(colors=colors,
                         line=dict(color='#000000', width=2)))

of.plot([trace])